package com.peanut.api;

import com.peanut.api.fallback.SpecFeignFallback;
import com.peanut.common.Result;
import com.peanut.dto.TabSpecDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(value = "peanut-spec-service",fallback = SpecFeignFallback.class)//找服务
public interface SpecFeign {

    @GetMapping("/spec/getSpec")
    Result<TabSpecDTO> getSpec();

}
